// Badge.java
package com.example.xinli;

public class Badge {
    private int imageResId;
    private String name;
    private String description;
    private String condition;
    private boolean isUnlocked;

    public Badge(int imageResId, String name, String description, String condition, boolean isUnlocked) {
        this.imageResId = imageResId;
        this.name = name;
        this.description = description;
        this.condition = condition;
        this.isUnlocked = isUnlocked;
    }

    // Getters and setters
    public int getImageResId() { return imageResId; }
    public void setImageResId(int imageResId) { this.imageResId = imageResId; }

    public String getName() { return name; }
    public void setName(String name) { this.name = name; }

    public String getDescription() { return description; }
    public void setDescription(String description) { this.description = description; }

    public String getCondition() { return condition; }
    public void setCondition(String condition) { this.condition = condition; }

    public boolean isUnlocked() { return isUnlocked; }
    public void setUnlocked(boolean unlocked) { isUnlocked = unlocked; }
}
